<h2>Notation d'un forum</h2>
<?php 
	$present = false;
	echo '<h3>'.show($forum->getTitre()).'</h3>';
	echo '<form action="'.base_url().'index.php/Administration/notationForum/'.$forum->getId().'" method="post"><hr/>';	
	
	if ($forum->getEtudiant1() != null)
	{	
		$present = true;
		echo '<ul><b>'.$forum->getEtudiant1()->getNom().' '.$forum->getEtudiant1()->getPrenom().'</b></ul>
			  <table class="table_notationForum">
				<tr>
					<td>
						<label for="pointMax">Points max : '.$forum->getNoteMax().'</label>
					<td>
						<label for="pointAttribue1">Point attribué :</label>
						<input type="number" name="pointAttribue1"';
						if($modif)
							echo' value='.$forum->getNoteEtu1();
						echo' min="-'.$forum->getNoteMax().'" max="'.$forum->getNoteMax().'" step="0.01"/>
					</td>
				</tr>
			  </table><hr/>';
	}
	if ($forum->getEtudiant2() != null)
	{
		$present = true;
		echo '<ul><b>'.$forum->getEtudiant2()->getNom().' '.$forum->getEtudiant2()->getPrenom().'</b></ul>
			<table class="table_notationForum">
				<tr>
					<td>
						<label for="pointMax">Points max : '.$forum->getNoteMax().'</label>
					<td>
						<label for="pointAttribue2">Point attribué :</label>
						<input type="number" name="pointAttribue2"';
						if($modif)
							echo ' value='.$forum->getNoteEtu2();
						echo ' min="-'.$forum->getNoteMax().'" max="'.$forum->getNoteMax().'" step="0.01"/>
					</td>
				</tr>
			</table><hr/>';
	}	
	if(!$present)
		echo 'Aucun étudiant n\'étais présent à ce forum.';
	if(isset($erreur))
		echo $erreur.'<br>';
	echo '<div class="boutons">
			<ul>
		  	  <li><input class="Ligne2" type="submit" name="Valider" value="Valider"/></li>
		  	  <li><a href="javascript:history.go(-1)"><button type="button">Retour</button></a></li>
			</ul>
		  </div>
	</form>';
	
?>